package com.haiyou.dc.canal.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 门店表
 *
 * @author Administrator
 * @date 2020-04-06 20:08:00
 */
@ApiModel(value = "门店表")
@Data
@Accessors(chain = true)
@Table(name = "_store")
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 门店id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "门店id", name = "id")
    private Integer id;

    /**
     * 网点编码/门店编码
     */
    @Column(name = "net_point")
    @ApiModelProperty(value = "网点编码/门店编码", name = "netPoint")
    private String netPoint;

    /**
     * 大区
     */
    @Column(name = "region")
    @ApiModelProperty(value = "大区", name = "region")
    private String region;

    /**
     * 门店名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "门店名称", name = "name")
    private String name;

    /**
     * 门店简称
     */
    @Column(name = "nick_store")
    @ApiModelProperty(value = "门店简称", name = "nickStore")
    private String nickStore;

    /**
     * 城市名称
     */
    @Column(name = "city")
    @ApiModelProperty(value = "城市名称", name = "city")
    private String city;

    /**
     * 省份
     */
    @Column(name = "province")
    @ApiModelProperty(value = "省份", name = "province")
    private String province;

    /**
     * 区域简称
     */
    @Column(name = "nick_region")
    @ApiModelProperty(value = "区域简称", name = "nickRegion")
    private String nickRegion;

    /**
     * 地址
     */
    @Column(name = "address")
    @ApiModelProperty(value = "地址", name = "address")
    private String address;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    /**
     * 地区id
     */
    @Column(name = "region_id")
    @ApiModelProperty(value = "地区id", name = "regionId")
    private Integer regionId;

    /**
     * 省份id
     */
    @Column(name = "province_id")
    @ApiModelProperty(value = "省份id", name = "provinceId")
    private Integer provinceId;

    /**
     * 城市id
     */
    @Column(name = "city_id")
    @ApiModelProperty(value = "城市id", name = "cityId")
    private Integer cityId;

    /**
     * 所属项目id
     */
    @Column(name = "project_id")
    @ApiModelProperty(value = "所属项目id", name = "projectId")
    private Integer projectId;

}
